import { createApp } from "vue";
import { createPinia } from "pinia";

import App from "./App.vue";
import router from "./router";
import "vue-mobile-hxq/dist/style.css";
import "vant/lib/index.css";

import {setupAntDesign} from './plugins/antDesign'
import {setVantUi} from './plugins/vantUi'
import "utils/permission";
import "ant-design-vue/dist/antd.css";
import { Base64 } from "js-base64";
import VMdPreview from '@kangc/v-md-editor/lib/preview';
import '@kangc/v-md-editor/lib/style/preview.css';
import githubTheme from '@kangc/v-md-editor/lib/theme/github.js';
import '@kangc/v-md-editor/lib/theme/style/github.css';
import hljs from 'highlight.js';

VMdPreview.use(githubTheme, {
  Hljs: hljs,
});
import "./styles/index.scss";
const app = createApp(App);
app.use(VMdPreview)
app.use(createPinia());
app.use(router);
app.config.globalProperties.$Base64 = Base64; // Base64加密
setupAntDesign(app);
setVantUi(app);



app.mount("#app");
